import time

from playwright.sync_api import sync_playwright
from time import sleep
import unittest
class Test_jiuxian(unittest.TestCase):
    def setUp(self):
        self.s = sync_playwright().start()
        self.b = self.s.chromium.launch(headless=False)
        self.page=self.b.new_page()
    def tearDown(self):
        self.s.stop()


    def test_ll(self):
        self.page.goto('https://www.jiuxian.com/')
        self.page.click('a[class="headerLogin"]')
        self.page.fill('input[id="userName"]','15232008902')
        self.page.fill('input[id="password"]','123456Aa')
        time.sleep(15)
        self.page.click('xpath=/html/body/div/form/div/div/div/div/div[1]/div[2]/div[4]/input')
        self.page.click('a[class="bindSub"]')
        time.sleep(10)